﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EstoqueUnifeiADO
{
    public partial class frmEntraMercadoria : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void DepoisDeInserirMercadoria(object sender, EventArgs e)
        {
            modal.Hide();
            gvListEntraMerca.DataBind();
        }
        protected void LimparEntraMerca(object sender, EventArgs e) 
        {
            ctrlEntraMerca1.ClearAll();
        }
        protected void LimparEntraMercaFapep(object sender, EventArgs e) 
        {
            ctrlEntraMercaFapep2.ClearAll();
        }
        protected void DepoisDeInserirMercadoria2(object sendr, EventArgs e)
        {
            modalFapep.Hide();
            gvListEntraMerca.DataBind();
        }

        protected void gvListEntraMerca_SelectedIndexChanged(object sender, EventArgs e)
        {
            ctrlItemEntrada.Key = gvListEntraMerca.SelectedValue.ToString();
        }

        protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
        {
            switch (e.Item.Value)
            {
                case "Entramercadoria":
                    modal.Show();
                    break;
                case "EntradaFAPEP":
                    modalFapep.Show();
                    break;
                default:
                    break;
            }

        }
    }
}